
# Test dynamic module loading
set( 01_ModuleLoading_FILES 01_ModuleLoading_Payload.zip )
copy_if_different(
  "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}"
  "${01_ModuleLoading_FILES}" 01_ModuleLoading_TARGETS 
  "01_ModuleLoading_Files"
  )
add_library( FakeModule SHARED FakeModule.cpp )
add_library( FakeModule2 SHARED FakeModule2.cpp )
add_executable( 01_ModuleLoading 01_ModuleLoading.cpp ${01_ModuleLoading_TARGETS} )
target_link_libraries( 01_ModuleLoading core FakeModule )
add_test( 01_ModuleLoading 01_ModuleLoading )

# Test filesystem IO
set( 02_Filesystem_FILES 02_Filesystem_Payload1.txt 02_Filesystem_Payload2.zip )
copy_if_different(
  "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}"
  "${02_Filesystem_FILES}" 02_Filesystem_TARGETS 
  "02_Filesystem_Files"
  )
add_executable( 02_Filesystem 02_Filesystem.cpp ${02_Filesystem_TARGETS} )
target_link_libraries( 02_Filesystem core )
add_test( 02_Filesystem 02_Filesystem )


